package com.lex.entity.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(name = "AddDeptDto", description = "添加部门实体类")
public class AddDeptDto {
    @Schema(name = "name", description = "部门名称")
    @NotEmpty(message = "部门名称不能为空")
    private String name;
    @Schema(name = "orderNum", description = "排序")
    private Integer orderNum;
    @Schema(name = "parentId", description = "父级部门id")
    @NotNull
    private Long parentId;
    @Schema(name = "remark", description = "备注")
    private String remark;
    @Schema(name = "status", description = "状态")
    private Integer status;
}
